<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<title>src/viewer/inlines.h</title>
<meta name='robots' content='noindex,nofollow' />
<meta name='generator' content='GLOBAL-6.5.7' />
<meta http-equiv='Content-Style-Type' content='text/css' />
<link rel='stylesheet' type='text/css' href='../style.css' />
</head>
<body>
<!-- beginning of fixed guide -->
<div id='guide'><ul>
<li><a href='#L23'><img class='icon' src='../icons/first.png' alt='[^]' /></a></li>
<li><a href='#L165'><img class='icon' src='../icons/last.png' alt='[v]' /></a></li>
<li><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a></li>
<li><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a></li>
<li><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a></li>
<li><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a></li>
<li class='standout'><span><a href='../files/src.html'>src</a>/<a href='../files/src--viewer.html'>viewer</a>/inlines.h</span></li>
</ul></div>
<!-- end of fixed guide -->
<a id='TOP' name='TOP'></a><h2 class='header'><a href='../mains.html'>root</a>/<a href='../files/src.html'>src</a>/<a href='../files/src--viewer.html'>viewer</a>/inlines.h</h2>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><img class='icon' src='../icons/n_top.png' alt='[top]' /><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+1 src/viewer/inlines.h'  /> */</em>
<hr />
<h2 class='header'><a href='src--viewer--internal.h.html#L348' title='Included from 348 in src/viewer/internal.h.'>INCLUDED FROM</a></h2>
<hr />
<h2 class='header'>DEFINITIONS</h2>
This source file includes following definitions.
<ol>
<li><a href='#L23' title='Defined at 23.'>mcview_offset_doz</a></li>
<li><a href='#L31' title='Defined at 31.'>mcview_offset_rounddown</a></li>
<li><a href='#L41' title='Defined at 41.'>mcview_dimen_doz</a></li>
<li><a href='#L50' title='Defined at 50.'>mcview_is_in_panel</a></li>
<li><a href='#L58' title='Defined at 58.'>mcview_may_still_grow</a></li>
<li><a href='#L69' title='Defined at 69.'>mcview_already_loaded</a></li>
<li><a href='#L77' title='Defined at 77.'>mcview_get_byte_file</a></li>
<li><a href='#L96' title='Defined at 96.'>mcview_get_byte</a></li>
<li><a href='#L117' title='Defined at 117.'>mcview_get_byte_indexed</a></li>
<li><a href='#L131' title='Defined at 131.'>mcview_count_backspaces</a></li>
<li><a href='#L144' title='Defined at 144.'>mcview_is_nroff_sequence</a></li>
<li><a href='#L165' title='Defined at 165.'>mcview_growbuf_read_all_data</a></li>
</ol>
<hr />
<pre>
<a id='L1' name='L1'></a>   1 <em class='sharp'>#ifndef</em> <a href='../S/src--viewer--inlines.h.html#L2' title='Defined at 2 in src/viewer/inlines.h.'>MC__VIEWER_INLINES_H</a>
<a id='L2' name='L2'></a>   2 <em class='sharp'>#define</em> <a href='../S/src--viewer--inlines.h.html#L1' title='Referred from 1 in src/viewer/inlines.h.'>MC__VIEWER_INLINES_H</a>
<a id='L3' name='L3'></a>   3 
<a id='L4' name='L4'></a>   4 <em class='sharp'>#include</em> &lt;limits.h&gt;             <em class='comment'>/* CHAR_BIT */</em>
<a id='L5' name='L5'></a>   5 
<a id='L6' name='L6'></a>   6 <em class='comment'>/*** typedefs(not structures) and defined constants **********************************************/</em>
<a id='L7' name='L7'></a>   7 
<a id='L8' name='L8'></a>   8 <em class='sharp'>#define</em> <a href='../S/src--viewer--inlines.h.html#L9' title='Referred from 9 in src/viewer/inlines.h.'>OFF_T_BITWIDTH</a>  ((<strong class='reserved'>unsigned</strong> <strong class='reserved'>int</strong>) (<strong class='reserved'>sizeof</strong> (<a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a>) * <a href='../S/src--vfs--smbfs--helpers--lib--time.c.html#L41' title='Defined at 41 in src/vfs/smbfs/helpers/lib/time.c.'>CHAR_BIT</a> - 1))
<a id='L9' name='L9'></a>   9 <em class='sharp'>#define</em> <a href='../R/OFFSETTYPE_MAX.html' title='Multiple referred from 2 places.'>OFFSETTYPE_MAX</a> (((<a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a>) 1 &lt;&lt; (<a href='../S/src--viewer--inlines.h.html#L8' title='Defined at 8 in src/viewer/inlines.h.'>OFF_T_BITWIDTH</a> - 1)) - 1)
<a id='L10' name='L10'></a>  10 
<a id='L11' name='L11'></a>  11 <em class='comment'>/*** enums ***************************************************************************************/</em>
<a id='L12' name='L12'></a>  12 
<a id='L13' name='L13'></a>  13 <em class='comment'>/*** structures declarations (and typedefs of structures)*****************************************/</em>
<a id='L14' name='L14'></a>  14 
<a id='L15' name='L15'></a>  15 <em class='comment'>/*** global variables defined in .c file *********************************************************/</em>
<a id='L16' name='L16'></a>  16 
<a id='L17' name='L17'></a>  17 <em class='comment'>/*** declarations of public functions ************************************************************/</em>
<a id='L18' name='L18'></a>  18 
<a id='L19' name='L19'></a>  19 <em class='comment'>/*** inline functions ****************************************************************************/</em>
<a id='L20' name='L20'></a>  20 
<a id='L21' name='L21'></a>  21 <em class='comment'>/* difference or zero */</em>
<a id='L22' name='L22'></a>  22 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a>
<a id='L23' name='L23'></a>  23 <a href='../R/mcview_offset_doz.html' title='Multiple referred from 7 places.'>mcview_offset_doz</a> (<a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>)
     <em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><a href='#L31'><img class='icon' src='../icons/right.png' alt='[next]' /></a><img class='icon' src='../icons/n_first.png' alt='[first]' /><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+23 src/viewer/inlines.h'  /> */</em>
<a id='L24' name='L24'></a>  24 <em class='brace'>{</em>
<a id='L25' name='L25'></a>  25     <strong class='reserved'>return</strong> (<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a> &gt;= <a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>) ? <a href='../Y/a.html' title='Multiple used in 340 places.'>a</a> - <a href='../Y/b.html' title='Multiple used in 443 places.'>b</a> : 0;
<a id='L26' name='L26'></a>  26 <em class='brace'>}</em>
<a id='L27' name='L27'></a>  27 
<a id='L28' name='L28'></a>  28 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L29' name='L29'></a>  29 
<a id='L30' name='L30'></a>  30 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a>
<a id='L31' name='L31'></a>  31 <a href='../R/mcview_offset_rounddown.html' title='Multiple referred from 7 places.'>mcview_offset_rounddown</a> (<a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>)
     <em class='comment'>/* <a href='#L23'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L41'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+31 src/viewer/inlines.h'  /> */</em>
<a id='L32' name='L32'></a>  32 <em class='brace'>{</em>
<a id='L33' name='L33'></a>  33     <a href='../Y/g_assert.html' title='Multiple used in 31 places.'>g_assert</a> (<a href='../Y/b.html' title='Multiple used in 443 places.'>b</a> != 0);
<a id='L34' name='L34'></a>  34     <strong class='reserved'>return</strong> <a href='../Y/a.html' title='Multiple used in 340 places.'>a</a> - <a href='../Y/a.html' title='Multiple used in 340 places.'>a</a> % <a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>;
<a id='L35' name='L35'></a>  35 <em class='brace'>}</em>
<a id='L36' name='L36'></a>  36 
<a id='L37' name='L37'></a>  37 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L38' name='L38'></a>  38 
<a id='L39' name='L39'></a>  39 <em class='comment'>/* difference or zero */</em>
<a id='L40' name='L40'></a>  40 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../S/src--viewer--internal.h.html#L24' title='Defined at 24 in src/viewer/internal.h.'>screen_dimen</a>
<a id='L41' name='L41'></a>  41 <a href='../R/mcview_dimen_doz.html' title='Multiple referred from 2 places.'>mcview_dimen_doz</a> (<a href='../S/src--viewer--internal.h.html#L24' title='Defined at 24 in src/viewer/internal.h.'>screen_dimen</a> <a href='../Y/a.html' title='Multiple used in 340 places.'>a</a>, <a href='../S/src--viewer--internal.h.html#L24' title='Defined at 24 in src/viewer/internal.h.'>screen_dimen</a> <a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>)
     <em class='comment'>/* <a href='#L31'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L50'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+41 src/viewer/inlines.h'  /> */</em>
<a id='L42' name='L42'></a>  42 <em class='brace'>{</em>
<a id='L43' name='L43'></a>  43     <strong class='reserved'>return</strong> (<a href='../Y/a.html' title='Multiple used in 340 places.'>a</a> &gt;= <a href='../Y/b.html' title='Multiple used in 443 places.'>b</a>) ? <a href='../Y/a.html' title='Multiple used in 340 places.'>a</a> - <a href='../Y/b.html' title='Multiple used in 443 places.'>b</a> : 0;
<a id='L44' name='L44'></a>  44 <em class='brace'>}</em>
<a id='L45' name='L45'></a>  45 
<a id='L46' name='L46'></a>  46 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L47' name='L47'></a>  47 
<a id='L48' name='L48'></a>  48 <em class='comment'>/* {{{ Simple Primitive Functions for WView }}} */</em>
<a id='L49' name='L49'></a>  49 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L50' name='L50'></a>  50 <a href='../R/mcview_is_in_panel.html' title='Multiple referred from 8 places.'>mcview_is_in_panel</a> (<a href='../D/WView.html' title='Multiple defined in 2 places.'>WView</a> * <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>)
     <em class='comment'>/* <a href='#L41'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L58'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+50 src/viewer/inlines.h'  /> */</em>
<a id='L51' name='L51'></a>  51 <em class='brace'>{</em>
<a id='L52' name='L52'></a>  52     <strong class='reserved'>return</strong> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/dpy_frame_size.html' title='Multiple used in 8 places.'>dpy_frame_size</a> != 0);
<a id='L53' name='L53'></a>  53 <em class='brace'>}</em>
<a id='L54' name='L54'></a>  54 
<a id='L55' name='L55'></a>  55 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L56' name='L56'></a>  56 
<a id='L57' name='L57'></a>  57 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L58' name='L58'></a>  58 <a href='../R/mcview_may_still_grow.html' title='Multiple referred from 3 places.'>mcview_may_still_grow</a> (<a href='../D/WView.html' title='Multiple defined in 2 places.'>WView</a> * <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>)
     <em class='comment'>/* <a href='#L50'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L69'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+58 src/viewer/inlines.h'  /> */</em>
<a id='L59' name='L59'></a>  59 <em class='brace'>{</em>
<a id='L60' name='L60'></a>  60     <strong class='reserved'>return</strong> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/growbuf_in_use.html' title='Multiple used in 16 places.'>growbuf_in_use</a> &amp;&amp; !<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/growbuf_finished.html' title='Multiple used in 5 places.'>growbuf_finished</a>);
<a id='L61' name='L61'></a>  61 <em class='brace'>}</em>
<a id='L62' name='L62'></a>  62 
<a id='L63' name='L63'></a>  63 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L64' name='L64'></a>  64 
<a id='L65' name='L65'></a>  65 <em class='comment'>/* returns TRUE if the idx lies in the half-open interval</em>
<a id='L66' name='L66'></a>  66 <em class='comment'> * [offset; offset + size), FALSE otherwise.</em>
<a id='L67' name='L67'></a>  67 <em class='comment'> */</em>
<a id='L68' name='L68'></a>  68 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L69' name='L69'></a>  69 <a href='../R/mcview_already_loaded.html' title='Multiple referred from 3 places.'>mcview_already_loaded</a> (<a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/idx.html' title='Multiple used in 120 places.'>idx</a>, <a href='../Y/size_t.html' title='Multiple used in 726 places.'>size_t</a> <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>)
     <em class='comment'>/* <a href='#L58'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L77'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+69 src/viewer/inlines.h'  /> */</em>
<a id='L70' name='L70'></a>  70 <em class='brace'>{</em>
<a id='L71' name='L71'></a>  71     <strong class='reserved'>return</strong> (<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a> &lt;= <a href='../Y/idx.html' title='Multiple used in 120 places.'>idx</a> &amp;&amp; <a href='../Y/idx.html' title='Multiple used in 120 places.'>idx</a> - <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a> &lt; (<a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a>) <a href='../Y/size.html' title='Multiple used in 387 places.'>size</a>);
<a id='L72' name='L72'></a>  72 <em class='brace'>}</em>
<a id='L73' name='L73'></a>  73 
<a id='L74' name='L74'></a>  74 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L75' name='L75'></a>  75 
<a id='L76' name='L76'></a>  76 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L77' name='L77'></a>  77 <a href='../S/src--viewer--inlines.h.html#L104' title='Referred from 104 in src/viewer/inlines.h.'>mcview_get_byte_file</a> (<a href='../D/WView.html' title='Multiple defined in 2 places.'>WView</a> * <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/byte_index.html' title='Multiple used in 63 places.'>byte_index</a>, <strong class='reserved'>int</strong> *<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>)
     <em class='comment'>/* <a href='#L69'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L96'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+77 src/viewer/inlines.h'  /> */</em>
<a id='L78' name='L78'></a>  78 <em class='brace'>{</em>
<a id='L79' name='L79'></a>  79     <a href='../Y/g_assert.html' title='Multiple used in 31 places.'>g_assert</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/datasource.html' title='Multiple used in 22 places.'>datasource</a> == <a href='../S/src--viewer--internal.h.html#L34' title='Defined at 34 in src/viewer/internal.h.'>DS_FILE</a>);
<a id='L80' name='L80'></a>  80 
<a id='L81' name='L81'></a>  81     <a href='../S/src--viewer--datasource.c.html#L282' title='Defined at 282 in src/viewer/datasource.c.'>mcview_file_load_data</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/byte_index.html' title='Multiple used in 63 places.'>byte_index</a>);
<a id='L82' name='L82'></a>  82     <strong class='reserved'>if</strong> (<a href='../S/src--viewer--inlines.h.html#L69' title='Defined at 69 in src/viewer/inlines.h.'>mcview_already_loaded</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/ds_file_offset.html' title='Multiple used in 10 places.'>ds_file_offset</a>, <a href='../Y/byte_index.html' title='Multiple used in 63 places.'>byte_index</a>, <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/ds_file_datalen.html' title='Multiple used in 9 places.'>ds_file_datalen</a>))
<a id='L83' name='L83'></a>  83     <em class='brace'>{</em>
<a id='L84' name='L84'></a>  84         <strong class='reserved'>if</strong> (<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>)
<a id='L85' name='L85'></a>  85             *<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a> = <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/ds_file_data.html' title='Multiple used in 6 places.'>ds_file_data</a>[<a href='../Y/byte_index.html' title='Multiple used in 63 places.'>byte_index</a> - <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/ds_file_offset.html' title='Multiple used in 10 places.'>ds_file_offset</a>];
<a id='L86' name='L86'></a>  86         <strong class='reserved'>return</strong> <a href='../Y/TRUE.html' title='Multiple used in 1520 places.'>TRUE</a>;
<a id='L87' name='L87'></a>  87     <em class='brace'>}</em>
<a id='L88' name='L88'></a>  88     <strong class='reserved'>if</strong> (<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>)
<a id='L89' name='L89'></a>  89         *<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a> = -1;
<a id='L90' name='L90'></a>  90     <strong class='reserved'>return</strong> <a href='../Y/FALSE.html' title='Multiple used in 1594 places.'>FALSE</a>;
<a id='L91' name='L91'></a>  91 <em class='brace'>}</em>
<a id='L92' name='L92'></a>  92 
<a id='L93' name='L93'></a>  93 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L94' name='L94'></a>  94 
<a id='L95' name='L95'></a>  95 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L96' name='L96'></a>  96 <a href='../R/mcview_get_byte.html' title='Multiple referred from 19 places.'>mcview_get_byte</a> (<a href='../D/WView.html' title='Multiple defined in 2 places.'>WView</a> * <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, <strong class='reserved'>int</strong> *<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>)
     <em class='comment'>/* <a href='#L77'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L117'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+96 src/viewer/inlines.h'  /> */</em>
<a id='L97' name='L97'></a>  97 <em class='brace'>{</em>
<a id='L98' name='L98'></a>  98     <strong class='reserved'>switch</strong> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>-&gt;<a href='../Y/datasource.html' title='Multiple used in 22 places.'>datasource</a>)
<a id='L99' name='L99'></a>  99     <em class='brace'>{</em>
<a id='L100' name='L100'></a> 100     <strong class='reserved'>case</strong> <a href='../S/src--viewer--internal.h.html#L32' title='Defined at 32 in src/viewer/internal.h.'>DS_STDIO_PIPE</a>:
<a id='L101' name='L101'></a> 101     <strong class='reserved'>case</strong> <a href='../S/src--viewer--internal.h.html#L33' title='Defined at 33 in src/viewer/internal.h.'>DS_VFS_PIPE</a>:
<a id='L102' name='L102'></a> 102         <strong class='reserved'>return</strong> <a href='../S/src--viewer--growbuf.c.html#L242' title='Defined at 242 in src/viewer/growbuf.c.'>mcview_get_byte_growing_buffer</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, <a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>);
<a id='L103' name='L103'></a> 103     <strong class='reserved'>case</strong> <a href='../S/src--viewer--internal.h.html#L34' title='Defined at 34 in src/viewer/internal.h.'>DS_FILE</a>:
<a id='L104' name='L104'></a> 104         <strong class='reserved'>return</strong> <a href='../S/src--viewer--inlines.h.html#L77' title='Defined at 77 in src/viewer/inlines.h.'>mcview_get_byte_file</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, <a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>);
<a id='L105' name='L105'></a> 105     <strong class='reserved'>case</strong> <a href='../S/src--viewer--internal.h.html#L35' title='Defined at 35 in src/viewer/internal.h.'>DS_STRING</a>:
<a id='L106' name='L106'></a> 106         <strong class='reserved'>return</strong> <a href='../S/src--viewer--datasource.c.html#L234' title='Defined at 234 in src/viewer/datasource.c.'>mcview_get_byte_string</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, <a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>);
<a id='L107' name='L107'></a> 107     <strong class='reserved'>case</strong> <a href='../S/src--viewer--internal.h.html#L31' title='Defined at 31 in src/viewer/internal.h.'>DS_NONE</a>:
<a id='L108' name='L108'></a> 108         <strong class='reserved'>return</strong> <a href='../S/src--viewer--datasource.c.html#L253' title='Defined at 253 in src/viewer/datasource.c.'>mcview_get_byte_none</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, <a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>);
<a id='L109' name='L109'></a> 109     <strong class='reserved'>default</strong>:
<a id='L110' name='L110'></a> 110         <strong class='reserved'>return</strong> <a href='../Y/FALSE.html' title='Multiple used in 1594 places.'>FALSE</a>;
<a id='L111' name='L111'></a> 111     <em class='brace'>}</em>
<a id='L112' name='L112'></a> 112 <em class='brace'>}</em>
<a id='L113' name='L113'></a> 113 
<a id='L114' name='L114'></a> 114 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L115' name='L115'></a> 115 
<a id='L116' name='L116'></a> 116 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L117' name='L117'></a> 117 <a href='../R/mcview_get_byte_indexed.html' title='Multiple referred from 5 places.'>mcview_get_byte_indexed</a> (<a href='../D/WView.html' title='Multiple defined in 2 places.'>WView</a> * <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/base.html' title='Multiple used in 107 places.'>base</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/ofs.html' title='Multiple used in 20 places.'>ofs</a>, <strong class='reserved'>int</strong> *<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>)
     <em class='comment'>/* <a href='#L96'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L131'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+117 src/viewer/inlines.h'  /> */</em>
<a id='L118' name='L118'></a> 118 <em class='brace'>{</em>
<a id='L119' name='L119'></a> 119     <strong class='reserved'>if</strong> (<a href='../Y/base.html' title='Multiple used in 107 places.'>base</a> &lt;= <a href='../S/src--viewer--inlines.h.html#L9' title='Defined at 9 in src/viewer/inlines.h.'>OFFSETTYPE_MAX</a> - <a href='../Y/ofs.html' title='Multiple used in 20 places.'>ofs</a>)
<a id='L120' name='L120'></a> 120     <em class='brace'>{</em>
<a id='L121' name='L121'></a> 121         <strong class='reserved'>return</strong> <a href='../S/src--viewer--inlines.h.html#L96' title='Defined at 96 in src/viewer/inlines.h.'>mcview_get_byte</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/base.html' title='Multiple used in 107 places.'>base</a> + <a href='../Y/ofs.html' title='Multiple used in 20 places.'>ofs</a>, <a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>);
<a id='L122' name='L122'></a> 122     <em class='brace'>}</em>
<a id='L123' name='L123'></a> 123     <strong class='reserved'>if</strong> (<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a>)
<a id='L124' name='L124'></a> 124         *<a href='../Y/retval.html' title='Multiple used in 90 places.'>retval</a> = -1;
<a id='L125' name='L125'></a> 125     <strong class='reserved'>return</strong> <a href='../Y/FALSE.html' title='Multiple used in 1594 places.'>FALSE</a>;
<a id='L126' name='L126'></a> 126 <em class='brace'>}</em>
<a id='L127' name='L127'></a> 127 
<a id='L128' name='L128'></a> 128 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L129' name='L129'></a> 129 
<a id='L130' name='L130'></a> 130 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <strong class='reserved'>int</strong>
<a id='L131' name='L131'></a> 131 mcview_count_backspaces (<a href='../D/WView.html' title='Multiple defined in 2 places.'>WView</a> * <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>)
     <em class='comment'>/* <a href='#L117'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L144'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+131 src/viewer/inlines.h'  /> */</em>
<a id='L132' name='L132'></a> 132 <em class='brace'>{</em>
<a id='L133' name='L133'></a> 133     <strong class='reserved'>int</strong> <a href='../Y/backspaces.html' title='Multiple used in 4 places.'>backspaces</a> = 0;
<a id='L134' name='L134'></a> 134     <strong class='reserved'>int</strong> <a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>;
<a id='L135' name='L135'></a> 135     <strong class='reserved'>while</strong> (<a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a> &gt;= 2 * <a href='../Y/backspaces.html' title='Multiple used in 4 places.'>backspaces</a> &amp;&amp; <a href='../S/src--viewer--inlines.h.html#L96' title='Defined at 96 in src/viewer/inlines.h.'>mcview_get_byte</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a> - 2 * <a href='../Y/backspaces.html' title='Multiple used in 4 places.'>backspaces</a>, &amp;<a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a>)
<a id='L136' name='L136'></a> 136            &amp;&amp; <a href='../Y/c.html' title='Multiple used in 1020 places.'>c</a> == '\b')
<a id='L137' name='L137'></a> 137         <a href='../Y/backspaces.html' title='Multiple used in 4 places.'>backspaces</a>++;
<a id='L138' name='L138'></a> 138     <strong class='reserved'>return</strong> <a href='../Y/backspaces.html' title='Multiple used in 4 places.'>backspaces</a>;
<a id='L139' name='L139'></a> 139 <em class='brace'>}</em>
<a id='L140' name='L140'></a> 140 
<a id='L141' name='L141'></a> 141 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L142' name='L142'></a> 142 
<a id='L143' name='L143'></a> 143 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <a href='../Y/gboolean.html' title='Multiple used in 1757 places.'>gboolean</a>
<a id='L144' name='L144'></a> 144 <a href='../S/src--viewer--coord_cache.c.html#L413' title='Referred from 413 in src/viewer/coord_cache.c.'>mcview_is_nroff_sequence</a> (<a href='../D/WView.html' title='Multiple defined in 2 places.'>WView</a> * <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/off_t.html' title='Multiple used in 521 places.'>off_t</a> <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>)
     <em class='comment'>/* <a href='#L131'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><a href='#L165'><img class='icon' src='../icons/right.png' alt='[next]' /></a><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+144 src/viewer/inlines.h'  /> */</em>
<a id='L145' name='L145'></a> 145 <em class='brace'>{</em>
<a id='L146' name='L146'></a> 146     <strong class='reserved'>int</strong> <a href='../Y/c0.html' title='Multiple used in 3 places.'>c0</a>, <a href='../Y/c1.html' title='Multiple used in 94 places.'>c1</a>, <a href='../Y/c2.html' title='Multiple used in 88 places.'>c2</a>;
<a id='L147' name='L147'></a> 147 
<a id='L148' name='L148'></a> 148     <em class='comment'>/* The following commands are ordered to speed up the calculation. */</em>
<a id='L149' name='L149'></a> 149 
<a id='L150' name='L150'></a> 150     <strong class='reserved'>if</strong> (!<a href='../S/src--viewer--inlines.h.html#L117' title='Defined at 117 in src/viewer/inlines.h.'>mcview_get_byte_indexed</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, 1, &amp;<a href='../Y/c1.html' title='Multiple used in 94 places.'>c1</a>) || <a href='../Y/c1.html' title='Multiple used in 94 places.'>c1</a> != '\b')
<a id='L151' name='L151'></a> 151         <strong class='reserved'>return</strong> <a href='../Y/FALSE.html' title='Multiple used in 1594 places.'>FALSE</a>;
<a id='L152' name='L152'></a> 152 
<a id='L153' name='L153'></a> 153     <strong class='reserved'>if</strong> (!<a href='../S/src--viewer--inlines.h.html#L117' title='Defined at 117 in src/viewer/inlines.h.'>mcview_get_byte_indexed</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, 0, &amp;<a href='../Y/c0.html' title='Multiple used in 3 places.'>c0</a>) || !<a href='../Y/g_ascii_isprint.html' title='Multiple used in 15 places.'>g_ascii_isprint</a> (<a href='../Y/c0.html' title='Multiple used in 3 places.'>c0</a>))
<a id='L154' name='L154'></a> 154         <strong class='reserved'>return</strong> <a href='../Y/FALSE.html' title='Multiple used in 1594 places.'>FALSE</a>;
<a id='L155' name='L155'></a> 155 
<a id='L156' name='L156'></a> 156     <strong class='reserved'>if</strong> (!<a href='../S/src--viewer--inlines.h.html#L117' title='Defined at 117 in src/viewer/inlines.h.'>mcview_get_byte_indexed</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../Y/offset.html' title='Multiple used in 365 places.'>offset</a>, 2, &amp;<a href='../Y/c2.html' title='Multiple used in 88 places.'>c2</a>) || !<a href='../Y/g_ascii_isprint.html' title='Multiple used in 15 places.'>g_ascii_isprint</a> (<a href='../Y/c2.html' title='Multiple used in 88 places.'>c2</a>))
<a id='L157' name='L157'></a> 157         <strong class='reserved'>return</strong> <a href='../Y/FALSE.html' title='Multiple used in 1594 places.'>FALSE</a>;
<a id='L158' name='L158'></a> 158 
<a id='L159' name='L159'></a> 159     <strong class='reserved'>return</strong> (<a href='../Y/c0.html' title='Multiple used in 3 places.'>c0</a> == <a href='../Y/c2.html' title='Multiple used in 88 places.'>c2</a> || <a href='../Y/c0.html' title='Multiple used in 3 places.'>c0</a> == '_' || (<a href='../Y/c0.html' title='Multiple used in 3 places.'>c0</a> == '+' &amp;&amp; <a href='../Y/c2.html' title='Multiple used in 88 places.'>c2</a> == 'o'));
<a id='L160' name='L160'></a> 160 <em class='brace'>}</em>
<a id='L161' name='L161'></a> 161 
<a id='L162' name='L162'></a> 162 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L163' name='L163'></a> 163 
<a id='L164' name='L164'></a> 164 <strong class='reserved'>static</strong> <strong class='reserved'>inline</strong> <strong class='reserved'>void</strong>
<a id='L165' name='L165'></a> 165 <a href='../R/mcview_growbuf_read_all_data.html' title='Multiple referred from 3 places.'>mcview_growbuf_read_all_data</a> (<a href='../D/WView.html' title='Multiple defined in 2 places.'>WView</a> * <a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>)
     <em class='comment'>/* <a href='#L144'><img class='icon' src='../icons/left.png' alt='[previous]' /></a><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><img class='icon' src='../icons/n_last.png' alt='[last]' /><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><a href='#BOTTOM'><img class='icon' src='../icons/bottom.png' alt='[bottom]' /></a><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+165 src/viewer/inlines.h'  /> */</em>
<a id='L166' name='L166'></a> 166 <em class='brace'>{</em>
<a id='L167' name='L167'></a> 167     <a href='../S/src--viewer--growbuf.c.html#L127' title='Defined at 127 in src/viewer/growbuf.c.'>mcview_growbuf_read_until</a> (<a href='../Y/view.html' title='Multiple used in 1205 places.'>view</a>, <a href='../S/src--viewer--inlines.h.html#L9' title='Defined at 9 in src/viewer/inlines.h.'>OFFSETTYPE_MAX</a>);
<a id='L168' name='L168'></a> 168 <em class='brace'>}</em>
<a id='L169' name='L169'></a> 169 
<a id='L170' name='L170'></a> 170 <em class='comment'>/* --------------------------------------------------------------------------------------------- */</em>
<a id='L171' name='L171'></a> 171 
<a id='L172' name='L172'></a> 172 <em class='sharp'>#endif</em> <em class='comment'>/* MC__VIEWER_INLINES_H */</em>
</pre>
<hr />
<a id='BOTTOM' name='BOTTOM'></a>
<em class='comment'>/* <img class='icon' src='../icons/n_left.png' alt='[previous]' /><img class='icon' src='../icons/n_right.png' alt='[next]' /><a href='#L23'><img class='icon' src='../icons/first.png' alt='[first]' /></a><a href='#L165'><img class='icon' src='../icons/last.png' alt='[last]' /></a><a href='#TOP'><img class='icon' src='../icons/top.png' alt='[top]' /></a><img class='icon' src='../icons/n_bottom.png' alt='[bottom]' /><a href='../mains.html'><img class='icon' src='../icons/index.png' alt='[index]' /></a><a href='../help.html'><img class='icon' src='../icons/help.png' alt='[help]' /></a>&nbsp;<input type='text' readonly onfocus='this.select();' value='+172 src/viewer/inlines.h'  /> */</em>
</body>
</html>
